﻿namespace Agile.DataAccess
{
    /// <summary>
    /// 
    /// </summary>
    internal partial class DbContext
	{
        /// <summary>
        /// 
        /// </summary>
        /// <param name="timeout"></param>
        /// <returns></returns>
		public IDbContext CommandTimeout(int timeout)
		{
            timeout = timeout <= 0 ? 30 : timeout;
			Data.CommandTimeout = timeout;
			return this;
		}
	}
}
